package com.qf.spring005.service;

import com.qf.spring005.entity.User;

import java.util.List;

public interface UserService {
    public List<User> getAll();

    /**
     * 转账
     * @param fromId 从哪个账户赚钱，账户的id
     * @param toId 转到哪个账户去，账户id
     * @param amount 转账的金额
     */
    public void transfer(Integer fromId ,Integer toId,Integer amount);
}
